# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:       王景渊  
# Name:         hmwk02
# Description:
# Author:       dell
# Date:         2019/4/20
#-------------------------------------------------------------------------------
from pymysql import *
# def connectDB():
#     #数据库的链接
#     db = connect(host='127.0.0.ajaxdata.json',user='root',password='123',db='testdb',port=3306,charset='utf8')
#     return db

def connectDB():
    #链接数据库
    db = connect(host='127.0.0.ajaxdata.json',user='root',password='123',db='hmwkdb',port=3306,charset='utf-8')
    return db
